package com.chatcompetition.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chatcompetition.domain.entity.Employee;
import com.chatcompetition.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public interface EmployeeService  extends IService<Employee> {


    public List<Employee> getAllEmployees()     ;

    public void deleteEmployee(Integer id);

    public Employee addEmployee(Employee employee);

    // 根据工号更新员工信息
    boolean updateEmployeeByEmployeeNumber(Employee employee);
    // 根据工号获取员工状态
    Integer getEmployeeStatusByEmployeeNumber(String employeeNumber);
    Employee login(String employeeNumber, String employeePassword, String employeeDepartment);

    // 根据工号删除员工
    boolean deleteByEmployeeNumber(String employeeNumber);

    // 根据工号更新员工状态
    boolean updateEmployeeStatusByEmployeeNumber(String employeeNumber, int employeeStatus);
}
